package com.example.service;

import com.example.pojo.Dept;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

public interface DeptService {

    /**
     * 查询所有部门信息
     * @return
     */
    public List<Dept> findAll();

    public int deleteById(Integer id);
    public int insert(Dept dept);

    Dept findById(Integer id);

    void update(Dept dept);
}
